Date: Thu, 08 Apr 2010 00:59:49 -0700 From: perryh@pluto.rain.com To: psteele@maxiscale.com Cc: freebsd-questions@freebsd.org Subject: Re: How customized can an mfsroot be? Message-ID: <4bbd8cf5.kM98GPFbc40Ckgzy%perryh@pluto.rain.com> In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F8720@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F7D05@MBX03.exg5.exghost.com> <x2uade45ae91004051730j87d11987j47b3b945971c85d6@mail.gmail.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F7FAD@MBX03.exg5.exghost.com> <m2gade45ae91004051744pa4d4d86ax6a1e1f38195dc6a7@mail.gmail.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F7FDD@MBX03.exg5.exghost.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F8066@MBX03.exg5.exghost.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F84AD@MBX03.exg5.exghost.com> <4BBC32A4.1080906@infracaninophile.co.uk> <r2j2daa8b4e1004070541v5b617713kddd6a23e4b83c1a9@mail.gmail.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B6F8720@MBX03.exg5.exghost.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter Steele <psteele@maxiscale.com> wrote: > In my read-only CD-ROM boot case, /var is created as a MFS device > automatically and populated, but a basic directory layout only is > used. Nothing from the CD-ROM /var is copied into the MFS /var > that is created. > > I cannot figure out how BSD can do this automagically, so I'll > have to have a duplicate copy of /var on the CD and populate it > from that. What I've tried that works well is when I'm about to > run mkisofs to create the .iso from, I rename my /var to /var2 and > create an empty /var. When the iso is booted, a default MFS based > /var is created with a specific collection of directories. I have > a startup script that copies my /var2 contents into /var and that > does the trick. You might be able to reduce the iso size some by making a tarball of /var (using tar -y or tar -z) instead of keeping /var2 as a tree. Granted you would then need to have tar(1) in the iso, which may cancel out much of the savings if you would not otherwise have needed it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4bbd8cf5.kM98GPFbc40Ckgzy%perryh>